﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EntityPet
{
    /// <summary>
    /// 宠物商品外卖服务
    /// </summary>
    public class Pet_TakeoutFood
    {
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.None)]
        public Guid ID { get; set; }

        /// <summary>
        /// 订单信息
        /// </summary>
        [MaxLength(16)]
        [MinLength(8)]
        public string? Dingdan{ get; set; }

        /// <summary>
        /// 价格
        /// </summary>
        public decimal Price { get; set; }

        /// <summary>
        /// 外卖员
        /// </summary>
        [MaxLength(16)]
        [MinLength(8)]
        public string ? DeliveryDrivers{ get; set; }

        /// <summary>
        /// 配送费
        /// 五公里免费 
        /// 超重 一斤1元
        /// 超远 一公里3元
        /// </summary>
        public int DeliveryFee{ get; set; }

        /// <summary>
        /// 满减卷
        /// 宠物服装 199-10
        /// 宠物玩具 128-8
        /// 宠物食物 148-15
        /// </summary>
        public int FullReductionRoll{ get; set; }

        /// <summary>
        /// 联系电话
        /// </summary>
        [MaxLength(11)]
        public int Lianxi { get; set; }

    }
}
